package PTA;

import com.sun.javafx.iio.gif.GIFImageLoaderFactory;

import java.util.Scanner;

public class Pta15 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int jishu = 0;
        int oushu = 0;
            for (int i = 1; i <= n; i++) {
                if (i % 3 == 0) {
                    if (i % 2 == 0) {
                        oushu++;
                    } else {
                        jishu++;
                    }
                }
            }
        System.out.println(jishu + "," + oushu);
    }
}
